<template>
	<view class="content">
		<p style="font-weight: bold;">{{ name }}</p>
		<image :src="ImgUrl" mode="aspectFit"></image>
		<p style="color: #666;">扫一扫上面的二维码图案，加我为朋友。</p>
	</view>
</template>

<script>
import { config } from "../api/index.js";
	export default {
		data() {
			return {
				ImgUrl:'',
				name:''
			};
		},
		onLoad() {
			config().then((res)=>{
				this.ImgUrl = res.data.kefu_qrcode,
				this.name = res.data.kefu_name
			})
		},
		methods: {
		},
	};
</script>

<style lang="scss" scoped>
.content {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  image {
    width: 80%;
    height: 50%;
  }
}
</style>